function playerDoMessage(playerid, radius, message)
{
	proxDetector(radius.tofloat(), playerid, "* " + message.tostring() + " (( " + pData[playerid].name + "))", COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE);
	return 1;
}

function playerActionMessage(playerid, radius, message)
{
	proxDetector(radius.tofloat(), playerid, "[AKCJA:] " + pData[playerid].name + " " + message.tostring(), COLOR_LIGHTBLUE, COLOR_LIGHTBLUE, COLOR_LIGHTBLUE, COLOR_LIGHTBLUE, COLOR_LIGHTBLUE);
	return 1;
}

function sendCBMessage(playerid, channel, string)
{
	local seats;
    for(local i = 0; i < vehiclesCount; i++)
	{
		if(!vehData[i].cb || !vehData[i].cbOn)
			continue;
		if(vehData[i].cbChannel == channel)
		{
			seats = getVehicleOccupants(i);
			foreach(j, id in seats) 
				sendPlayerMessage(id, "[CB:][" + channel +"] " + string, COLOR_CB);
		}
	}
	return 1;
}

function sendAdminMessage(message)
{
	foreach(i, playername in getPlayers())
	{
		if(pData[i].permsLvl > 0)
			sendPlayerMessage( i, "[ADMIN:] " + message.tostring(), COLOR_YELLOW, true);
	}
}

function sendABroadcast(message)
{
	foreach(i, playername in getPlayers())
	{
		if(pData[i].permsLvl > 0)
			sendPlayerMessage( i, "[WParty SERVER:]["+COLOR_YELLOW+" " + message.tostring(), COLOR_RED, true);
	}
}

function sendBroadcast(message)
{
	foreach(i, playername in getPlayers())
	{
		sendPlayerMessage( i, "[WParty SERVER:]["+COLOR_WHITE+" " + message.tostring(), COLOR_RED, true);
	}
}